﻿using ServiceStack.Common;
using ServiceStack.ServiceInterface;
using System.Collections.Generic;
using System;
using System.Collections;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServiceStack.ServiceHost;
using ServiceStack.ServiceInterface.ServiceModel;
using g42.Dto;
using g42.Repos;

namespace g42.Services
{

  public class StrasseService : Service
  {
    public StrasseRepository Repository { get; set; }  //Injected by IOC

    public object Get(Strasse aStrasse)
    {
      return Repository.Get();
    }

    public object Post(Strasse aStrasse)
    {
      return Repository.Store(aStrasse);
    }

    public object Put(Strasse aStrasse)
    {
      return Repository.Store(aStrasse);
    }

  }
}
